package money

import (
	"fmt"
	"github.com/shopspring/decimal"
	"testing"
)

func TestRound(t *testing.T) {
	fs := "1.3498"
	d, err := decimal.NewFromString(fs)
	fmt.Println(err)
	df, _ := d.RoundFloor(2).Float64()
	fmt.Println(df)
	is := "1000.012"
	var dIs decimal.Decimal
	dIs, err = decimal.NewFromString(is)
	fmt.Println(err)

	fmt.Println(dIs.StringFixedBank(2))
}
